package org.jeecg.modules.chvegetable.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.chvegetable.entity.FlowerTagBookpre;
import org.jeecg.modules.chvegetable.mapper.FlowerTagBookpreMapper;
import org.jeecg.modules.chvegetable.service.IFlowerTagBookpreService;
import org.springframework.stereotype.Service;

/**
 * @Description: 预出库台账
 * @Author: jeecg-boot
 * @Date: 2023-02-12
 * @Version: V1.0
 */
@Service
public class FlowerTagBookpreServiceImpl extends ServiceImpl<FlowerTagBookpreMapper, FlowerTagBookpre> implements IFlowerTagBookpreService {

    //    校验预出库总台账数据 是否为负
    @Override
    public boolean checkBooksIsErr() {
        Integer checkBooksIsErr = baseMapper.checkBooksIsErr();
        if (checkBooksIsErr > 0) {
            return true;
        } else {
            return false;
        }
    }

    @Override
    public void outPre(String id) {
        baseMapper.outPre(id);
    }

    @Override
    public void outPreBack(String id) {
        baseMapper.outPreBack(id);
    }


}
